<template>
	<view class="">
		<view class="followNav">
			<view class="leftIcon iconfont icon-aixin">
				<text class="icon-text">随拍</text>
			</view>
			<view class="middle">
				<!-- <text class="text">推荐</text>
				<text class="text">同城</text> -->
				<navigator 
				open-type="switchTab" 
				url="/pages/follow/follow" 
				class="text"
				:style="follow"
				>
				关注
				</navigator>
				<navigator 
				open-type="switchTab" 
				url="/pages/friend/friend" 
				class="text"
				:style="friend"
				>
				好友
				</navigator>
			</view>
		</view>
		<view class="ground"></view>
	</view>

</template>

<script>
	export default {
		props:[
			'page'
		],
		name:"followNav",
		data() {
			return {
				follow:'',
				friend:''
			};
		},
		mounted() {
			if(this.page==='friend'){
				this.friend='border-bottom: 2px solid #F0AD4E;'
			}else{
				this.follow='border-bottom: 2px solid #F0AD4E;'
			}
		}
	}
</script>

<style>
.ground{
	width: 100%;
	height: 60px;
	}
.followNav{
	width: 100%;
	height: 35px;
	position: fixed;
	top: 25px;
	left: 0;
	margin: 0 auto;
	line-height: 35px;
	z-index: 20;
}
.leftIcon{
	width: 20%;
	color: white;
	text-align: center;
	font-size: 20px;
	position: absolute;
	top: 0;
	left: 5px;
}
.middle{
	text-align: center;
}
.text{
	display: inline;
	color: white;
	margin: 0 10px;
	font-size: 15px;
}
.icon-text{
	font-size: 15px;
	margin-left: 5px;
}
</style>
